package com.ziyun.erp.modules.capital.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.erp.modules.capital.dao.MerchantPurseDao;
import com.ziyun.erp.modules.capital.entity.MerchantPurseEntity;
import com.ziyun.erp.modules.capital.service.MerchantPurseService;


@Service("merchantPurseService")
public class MerchantPurseServiceImpl extends ServiceImpl<MerchantPurseDao, MerchantPurseEntity> implements MerchantPurseService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<MerchantPurseEntity> page = this.selectPage(
                new Query<MerchantPurseEntity>(params).getPage(),
                new EntityWrapper<MerchantPurseEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public void updatePurseAfter(MerchantPurseEntity merchantPurse) {
        this.baseMapper.updatePurseAfter(merchantPurse);
    }

}
